package br.usp.pcs.basys2.memory;

import java.util.LinkedList;
import java.util.List;

public class Memory {

	private List<MemoryPartition> partitions;
	
	public Memory(Integer size) {
		MemoryPartition partition = new MemoryPartition(0,size-1);
		partitions = new LinkedList<MemoryPartition>();
		partitions.add(partition);
	}

	public List<MemoryPartition> getPartitions() {
		return partitions;
	}
	
	@Override
	public String toString() {
		return partitions.toString();
	}
}
